package com.example.hrandroidapp.domain;

public class UserPO {
	
	private Long branchId;
	private String branchName;
	private String name;
	private String userId;
	private String loginId;
	private String pwd;

	public UserPO() {}
	
	public UserPO(String name, String pwd) {
		this.name=name;
		this.pwd=pwd;
	}
	
	public UserPO(Long branchId, String branchName, String name, String userId, String pwd) {
		this.branchId=branchId;
		this.branchName=branchName;
		this.name=name;
		this.userId=userId;
		this.pwd=pwd;
	}
	
	public Long getBranchId() {
		return branchId;
	}
	public void setBranchId(Long branchId) {
		this.branchId = branchId;
	}
	public String getBranchName() {
		return branchName;
	}
	public void setBranchName(String branchName) {
		this.branchName = branchName;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getUserId() {
		return userId;
	}
	public void setUserId(String userId) {
		this.userId = userId;
	}
	public String getLoginId() {
		return loginId;
	}

	public void setLoginId(String loginId) {
		this.loginId = loginId;
	}
	public String getPwd() {
		return pwd;
	}
	public void setPwd(String pwd) {
		this.pwd = pwd;
	}
	
	public boolean equal(Object obj) {
		if(!this.getClass().equals(obj.getClass())) return false;
		
		UserPO obj2 = (UserPO) obj;
		if(this.getUserId().equals(obj2.getUserId())) return true;
		return false;
	}
	
	
}
